package com.dmbjz.profilesdemo.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class HelloController {


    //如果tvnMame没有获取到值，给默认的vivo
    @Value("${tvmName:vivo}")
    private String name;


    @RequestMapping(value ="/hello")
    public String hello(){
        return  name;
    }

}
